package com.gzhryc.shared_device.oem.h5.agent.dto.api.v1.security;

import java.io.Serializable;
import java.util.List;

import com.gzhryc.common.api.SecurityResponse;

/**
 * 角色账号
 */
public class UserAccountListResponse extends SecurityResponse<UserAccountListResponse.Body> {

    private static final long serialVersionUID = 1L;

    public UserAccountListResponse() {
        this.body = new Body();
    }

    public UserAccountListResponse(Integer code, String msg) {
        super(code, msg);
        this.body = new Body();
    }

    public static class Body implements Serializable {

		private static final long serialVersionUID = 1L;
		
		private List<Item> items;

        public List<Item> getItems() {
            return items;
        }

        public void setItems(List<Item> items) {
            this.items = items;
        }
    }

    public static class Item {

        private Long userId;
        private String userName;
        private Integer roleType;
        private String roleTypeName;
        private Long superiorId;
        private String superior;
        private Integer state = 0;          //1:当前登陆
        private Long referrerCount;		//介绍人数，介绍人角色专用

        public Long getUserId() {
            return userId;
        }

        public void setUserId(Long userId) {
            this.userId = userId;
        }

        public String getUserName() {
            return userName;
        }

        public void setUserName(String userName) {
            this.userName = userName;
        }

        public Integer getRoleType() {
            return roleType;
        }

        public void setRoleType(Integer roleType) {
            this.roleType = roleType;
        }

        public String getRoleTypeName() {
            return roleTypeName;
        }

        public void setRoleTypeName(String roleTypeName) {
            this.roleTypeName = roleTypeName;
        }

        public Long getSuperiorId() {
            return superiorId;
        }

        public void setSuperiorId(Long superiorId) {
            this.superiorId = superiorId;
        }

        public String getSuperior() {
            return superior;
        }

        public void setSuperior(String superior) {
            this.superior = superior;
        }

        public Integer getState() {
            return state;
        }

        public void setState(Integer state) {
            this.state = state;
        }

		public Long getReferrerCount() {
			return referrerCount;
		}

		public void setReferrerCount(Long referrerCount) {
			this.referrerCount = referrerCount;
		}
    }
}
